package ruk.applications.copyhelper.client;

import com.google.gwt.user.client.ui.ListBox;

import java.util.ArrayList;
import java.util.List;

public class DataListBox extends ListBox {
    List<String> dataList = new ArrayList<String>();

    public DataListBox() {
        super(false);
    }

    public void appendData(String data) {
        if (!dataList.contains(data)) {
            dataList.add(data);
            addItem(data);
        }
    }
}
